package com.procurement.orders.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.api.domain.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 采购申请对象 pcm_purchase_request
 * 
 * @author liyang
 * @date 2023-12-05
 */
public class PcmPurchaseRequest extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购申请编号 */
    private String purchaseRequestNumber;

    /** 采购类型 */
    @Excel(name = "采购类型")
    private Long purchaseType;

    /** 申请日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date requestDate;


    /** 申请人 */
    @Excel(name = "申请人")
    private Long submitter;

    /** 采购申请状态 */
    @Excel(name = "采购申请状态")
    private Long purchaseStatus;

    /**提交人表关联**/
    private SysUser sysUser;


    /** 申请明细信息 */
    private List<PcmApplicationDetail> pcmApplicationDetailList;

    public void setPurchaseRequestNumber(String purchaseRequestNumber) 
    {
        this.purchaseRequestNumber = purchaseRequestNumber;
    }

    public String getPurchaseRequestNumber() 
    {
        return purchaseRequestNumber;
    }

    public void setPurchaseType(Long purchaseType) 
    {
        this.purchaseType = purchaseType;
    }

    public Long getPurchaseType() 
    {
        return purchaseType;
    }
    public void setRequestDate(Date requestDate) 
    {
        this.requestDate = requestDate;
    }

    public Date getRequestDate() 
    {
        return requestDate;
    }

    public void setSubmitter(Long submitter)
    {
        this.submitter = submitter;
    }

    public Long getSubmitter()
    {
        return submitter;
    }

    public Long getPurchaseStatus() {
        return purchaseStatus;
    }

    public void setPurchaseStatus(Long purchaseStatus) {
        this.purchaseStatus = purchaseStatus;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public List<PcmApplicationDetail> getPcmApplicationDetailList()
    {
        return pcmApplicationDetailList;
    }

    public void setPcmApplicationDetailList(List<PcmApplicationDetail> pcmApplicationDetailList)
    {
        this.pcmApplicationDetailList = pcmApplicationDetailList;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purchaseRequestNumber", getPurchaseRequestNumber())
            .append("purchaseType", getPurchaseType())
            .append("requestDate", getRequestDate())
            .append("updateTime", getUpdateTime())
            .append("submitter", getSubmitter())
            .append("purchaseStatus", getPurchaseStatus())
            .append("sysUser",getSysUser())
            .append("pcmApplicationDetailList", getPcmApplicationDetailList())

            .toString();
    }
}
